home *** CD-ROM | disk | FTP | other *** search
/ Turnbull China Bikeride / Turnbull China Bikeride - Disc 1.iso / ARGONET / PD / PROGRAMMING / LCLINT2.SPK / test / test_b / c / stticarray < prev    next >
Text File  |  1996-08-28  |  324b  |  29 lines

  1. #include <stdio.h>
  2. #include <stdlib.h>
  3.  
  4. char *foo1(void)
  5. {
  6.   static char buf[1000];
  7.   
  8.   strcpy(buf, "hello");
  9.   return buf;
  10. }
  11.  
  12. /*@observer@*/ char *foo2(void)
  13. {
  14.   static char buf[1000];
  15.   
  16.   strcpy(buf, "hello");
  17.   return buf;
  18. }
  19.  
  20. char *f (char outstr[])
  21. {
  22.   return outstr; 
  23. }
  24.  
  25. char *g (char *outstr)
  26. {
  27.   return outstr; 
  28. }
  29.